package com.goodomen.garbage.web.constant;

public class SysAdminEnums {

    public enum DeleteFlagType {

        DEL(1, "删除"),
        COMMON(2, "未删除"),
        ;

        DeleteFlagType(Integer value, String desc) {
            this.value = value;
            this.desc = desc;
        }

        private Integer value;
        private String desc;

        public Integer getValue() {
            return value;
        }

        public String getDesc() {
            return desc;
        }

        public static DeleteFlagType getEnum(Integer value) {
            DeleteFlagType[] values = values();
            for (DeleteFlagType type : values) {
                if (type.getValue().equals(value)) {
                    return type;
                }
            }
            return null;
        }
    }

}
